import {request} from "../utils/index.js";

export function getTeacherInfo(name) {
    return request({
        url: `/getTeacherInfo?name=${name}`,
        method : "get"
    })
}

export function addTeacherInfo(data) {
    return request({
        url: "/addTeacherInfo",
        method : "post",
        data
    })
}

export function deleteTeacherInfo(data) {
    return request({
        url: "/deleteTeacher",
        method : "delete",
        data
    })
}

export function updateTeacherInfo(data) {
    return request({
        url: "/updateTeacher",
        method : "post",
        data
    })
}

export function batchDeleteTeacherInfo(data) {
    return request({
        url: "/batchDeleteTeacher",
        method : "delete",
        data
    })
}
export function getTeacherInfoByAcademyId(academyId) {
    return request({
        url: `/getInfoByAcademyId?academyId=${academyId}`,
        method : "get"
    })
}